macscsifinddevice.htmlHTMLudogCÎπùΔ£πùΔ£ÅÅ x Monkeybread Realbasic plugin - Documentation - MacSCSIFindDevice

MBS Plugin Documentation

This is the documentation for the Realbasic Plugins from Monkeybreadsoftware.de. You find these plugins and the newest version of this document at http://www.monkeybreadsoftware.de/realbasic inside the plugins section.

This help was last updated on Freitag, 6. September 2002 and covers 2136 items: 126 classes, 2 controls and 583 global functions.

The list of the themes Global methods by category Global methods by name The list of the classes The list of the controls

class MacSCSIFindDevice

class, SCSI devices Mo, 15. Jul 2002
Mac OS Classic: Works. Mac OS Carbon: does nothing. Windows: does nothing.
Function: Gives information about connected SCSI devices.
Example: See example project.
Notes:
As there is a timeout which is per default 200, you should use the SCSIAvailable check like in the example project.
Inside classic box this class behaves as inside Carbon directly.

AsyncSCSIPresent as integer

property, SCSI devices Sa, 27. Jul 2002
Mac OS Classic: Works. Mac OS Carbon: does nothing. Windows: does nothing.
Function: whether Async SCSI calls can be used.

Bus as integer

property, SCSI devices Mo, 15. Jul 2002
Mac OS Classic: Works. Mac OS Carbon: does nothing. Windows: does nothing.
Function: The number of the current bus.
Example: See example project.
Notes: If there is only one bus, you get 0.

DeviceType as integer

property, SCSI devices Mo, 15. Jul 2002
Mac OS Classic: Works. Mac OS Carbon: does nothing. Windows: does nothing.
Function: The type code for this device.
Notes:
The code is divided into two parts. The lower bit's which you can get using an operation like n=bitwiseand(devicetype,&H1F) are:

kScsiDevTypeDirect0Direct
kScsiDevTypeSequential1Sequential
kScsiDevTypePrinter2Printer
kScsiDevTypeProcessor3
kScsiDevTypeWorm4Write-once, read multiple
kScsiDevTypeCDROM5CD-ROM
kScsiDevTypeScanner6Scanner
kScsiDevTypeOptical7Optical
kScsiDevTypeChanger8Changer
kScsiDevTypeComm9Comm
kScsiDevTypeGraphicArts0A10Graphics Arts
kScsiDevTypeGraphicArts0B11Graphics Arts
kScsiDevTypeFirstReserved12Start of reserved sequence
kScsiDevTypeUnknownOrMissing&h1FUnknown or missing.

Than you have a modifier which you get by n=bitwiseand(devicetype,&E0):

kScsiDevTypeQualifierConnected0,Exists and is connected*/
kScsiDevTypeQualifierNotConnected&h20,Logical unit exists*/
kScsiDevTypeQualifierReserved&h40
kScsiDevTypeQualifierMissing&h60No such logical unit*/
kScsiDevTypeQualifierVendorSpecific&h80Other bits are unspecified

FirstDevice as boolean

method, SCSI devices Mo, 15. Jul 2002
Mac OS Classic: Works. Mac OS Carbon: does nothing. Windows: does nothing.
Function: Searches for the first device.
Example: See example project.
Notes: As there is a timeout which is per default 200, you should use the SCSIAvailable check like in the example project.

Flags as integer

property, SCSI devices Mo, 15. Jul 2002
Mac OS Classic: Works. Mac OS Carbon: does nothing. Windows: does nothing.
Function: The flags for this device.

ID as integer

property, SCSI devices Mo, 15. Jul 2002
Mac OS Classic: Works. Mac OS Carbon: does nothing. Windows: does nothing.
Function: The ID of the current device.
Example: See example project.

Lasterror as integer

property, SCSI devices Mo, 15. Jul 2002
Mac OS Classic: Works. Mac OS Carbon: does nothing. Windows: does nothing.
Function: The last error code.
Notes: Could be one of the SCSI manager errors.

LUN as integer

property, SCSI devices Mo, 15. Jul 2002
Mac OS Classic: Works. Mac OS Carbon: does nothing. Windows: does nothing.
Function: The logical unit number of the current device.
Example: See example project.
Notes: There can be multiple devices with the same ID but different LUNs.

NextDevice as boolean

method, SCSI devices Mo, 15. Jul 2002
Mac OS Classic: Works. Mac OS Carbon: does nothing. Windows: does nothing.
Function: Searches for the next device.
Example: See example project.
Notes: As there is a timeout which is per default 200, you should use the SCSIAvailable check like in the example project.

Product as string

property, SCSI devices Mo, 15. Jul 2002
Mac OS Classic: Works. Mac OS Carbon: does nothing. Windows: does nothing.
Function: The product string for this device.
Notes: Maximum 16 characters.

Revision as string

property, SCSI devices Mo, 15. Jul 2002
Mac OS Classic: Works. Mac OS Carbon: does nothing. Windows: does nothing.
Function: The revision string of the current device.
Notes: Maximum 4 characters.

Timeout as integer

property, SCSI devices Mo, 15. Jul 2002
Mac OS Classic: Works. Mac OS Carbon: does nothing. Windows: does nothing.
Function: Timeout for both functions to return after this count of ticks.
Example: See example project.
Notes: Default is 200 ticks, which is equal to 3.3 seconds.

Vendor as string

property, SCSI devices Mo, 15. Jul 2002
Mac OS Classic: Works. Mac OS Carbon: does nothing. Windows: does nothing.
Function: The vendor string for this device.
Notes: Maximum 8 characters.

VendorSpecific as string

property, SCSI devices Mo, 15. Jul 2002
Mac OS Classic: Works. Mac OS Carbon: does nothing. Windows: does nothing.
Function: The vendor specific string for this device.
Notes: Maximum 20 characters.

Version as integer

property, SCSI devices Mo, 15. Jul 2002
Mac OS Classic: Works. Mac OS Carbon: does nothing. Windows: does nothing.
Function: The version for this device.
Notes: ISO/ECMA/ANSI version

Contact

Written 2002 by Christian Schmitz. Feel free to ask or report mistakes to realbasic@macsw.de.
Thanks.

This resource fork intentionally left blank ˇˇ